package com.ahuan.mapper;

import com.ahuan.domain.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper {

    List<Product> selectGoodsList();

    Integer updateGoods(@Param("product") Product product);

    Integer insertGoods(@Param("product") Product product);

    Integer deleteGoods(Long id);

    Integer addInventory(@Param("id") String id, String s1,@Param("num") Integer num);
    List<Product> selectGoodsListById(@Param("id") String id);
}
